/*
 * Rectangle.h
 *
 *  Created on: 2020年12月12日
 *      Author: san
 */

#ifndef RECTANGLE_H_
#define RECTANGLE_H_

#include "Shapes.h"

class Rectangle: public Shapes{
public:
	Rectangle();
	Rectangle(double w, double h, std::string s): Shapes(s), width(w), height(h) {};
	virtual ~Rectangle();

	double area() const override { return width * height;}
protected:
	std::string name = "Rectangle";

private:
	double width;
	double height;
};

#endif /* RECTANGLE_H_ */
